<div class="common_left COM_LifeService">
    <div class="LifeService_type">
        <dl>
            <dt><i>分类：</i> <a class ="{:hover_css( 0, 'cat' )}" href="{:urlParamChange('cid', $_GET['cid'], '')}">全部</a></dt>
            <dd>
            <volist name="cat" id="cat">
                <a class ="{:hover_css( $cat['cat_id'], 'cat' )}" href="{:urlParamChange('cid', $_GET['cid'], $cat['cat_id'])}">{$cat.title}</a>
            </volist>
            </dd>
        </dl>
    </div>
    <div class="clear"></div>
    <div class="clear"></div>
    <ul class="LifeService_list">
        <volist name="data.list" id="sr">
            <li class="" style="background: url({$sr.background_url}) no-repeat scroll 0 0 transparent">
                <div class="img"><img src="{$sr.pic_url}"></div>
                <dl>
                    <dt><a href="{:U('Service/show', array('sid'=>$sr['service_id']))}">{$sr.name|str_cut="16,..."}</a></dt>
                    <dd>服务类别:{$sr.cat_name}</dd>
                    <dd>收费标准：{$sr.fee|str_cut="16,..."}</dd>
                    <dd>联系方式：{$sr.phone}  </dd>
                    <dd  class="COL"><a href="javascript:serviceGreat({$sr.service_id})"><i>{$sr.great_count|intval}</i>赞一个</a></dd>
                </dl>
            </li>
        </volist>  
    </ul>
    <div class="clear"></div>   
    <div class="paginationa"> {$data.page} </div>
</div>
<!----> 
<div class="common_right">
    <div class="Cad"><a href="{:U('User/Service/fabu')}" title="免费发布个人资料"><img src="__PUBLIC_HOME__/images/but5.jpg"></a></div>
    <div class="Cad martop10">{:getBlock('common_right_ad2')}</div>
    <include file="Public:round" />
</div>
<!---->
<div class="clear"></div>
</div>
<script type="text/javascript">
    function serviceGreat(sid){
        jQuery.ajax({
            url: "{:U('Service/great')}",
            type: 'POST',
            data: {sid:sid},
            dataType: 'json',
            success: function(data, textStatus, xhr) {
                if(data['status'] == true){
                    art.dialog({
                        lock: true,
                        background: '#000', // 背景色
                        opacity: 0.87,	// 透明度
                        content: '操作成功',
                        icon: 'succeed',
                    });
                    window.location.reload(); 
                }else {
                    art.dialog({
                        lock: true,
                        background: '#000', // 背景色
                        opacity: 0.87,	// 透明度
                        content: data['msg'],
                        icon: 'error',
                    });
                }
            },
            error: function(xhr, textStatus, errorThrown) {
                //called when there is an error
            }
        });
    }
</script>